

  ========= 测试开始 : 20210603_140431 =========



>>> cases\API\Login_API_Test.py

* API_1001  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：用户名正确，密码正确
预期结果:
{"msg": "请求成功", "code": 0, "data": {"token": ""}, "type": null, "status": "success"}
测试结果：
{
    "status": "success",
    "msg": "获取token成功！",
    "code": 0,
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjc4NjY3MSwidXNlcklkIjoieXp5YWRtaW4ifQ.qaPVzuJYVPrutCl58lLoNlwqwu1UxduyXq8hue7eg4c"
    }
}

对比结果：
{'"data":"token":""', '"msg":"获取token成功！"', '"data":"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlS2V5IjoiIiwidXNlck5hbWUiOiJ5enlhZG1pbiIsImV4cCI6MTYyMjc4NjY3MSwidXNlcklkIjoieXp5YWRtaW4ifQ.qaPVzuJYVPrutCl58lLoNlwqwu1UxduyXq8hue7eg4c"', '"msg":"请求成功"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 22, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1002  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：用户名正确，密码错误
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"账号密码不匹配！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 41, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1003  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：用户名错误，密码正确
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"账号密码不匹配！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 60, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1004  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：用户名错误，密码错误
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "账号密码不匹配！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"账号密码不匹配！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 78, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1005  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：只有用户名
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "密码不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"密码不能为空！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 96, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1006  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：只有密码
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "账号不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"账号不能为空！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 115, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1007  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：只有用户名
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "密码不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"密码不能为空！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 134, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1008  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
前置条件：只有密码
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "账号不能为空！",
    "code": 1,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"msg":"账号不能为空！"', '"type":null'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 152, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_1009  -  2021-06-03 14:04:31

  [ case execution steps ]
权限接口测试#1
'userAccount'为空, 'password'为空
预期结果:
{"msg": "请求失败", "code": 1, "data": null, "type": null, "status": "false"}
测试结果：
{
    "status": "false",
    "msg": "org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.zkxz.common.vo.ResultVo com.zkxz.auth.controller.TokenController.userToken(com.alibaba.fastjson.JSONObject,javax.servlet.http.HttpServletResponse,javax.servlet.http.HttpServletRequest)",
    "code": 500,
    "data": null
}

对比结果：
{'"msg":"请求失败"', '"code":500', 'javax.servlet.http.HttpServletResponse', '"msg":"org.springframework.http.converter.HttpMessageNotReadableException:Requiredrequestbodyismissing:publiccom.zkxz.common.vo.ResultVocom.zkxz.auth.controller.TokenController.userToken(com.alibaba.fastjson.JSONObject', 'javax.servlet.http.HttpServletRequest)"', '"type":null', '"code":1'}

** 检查点 **  是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Login_API_Test.py", line 171, in teststeps
    CHECK_POINT('是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 44, in CHECK_POINT
    raise AssertionError()
AssertionError



  ========= 测试结束 : 20210603_140431 =========


  耗时    : 0.677 秒


  用例数量 : 9

  通过 : 0

  失败 : 9

  异常 : 0

  套件初始化失败 : 0

  套件清除  失败 : 0

  用例初始化失败 : 0

  用例清除  失败 : 0
